@extends('default.layouts.companyHead')

@section('title', '智能推荐简历')
@section('headcss')
    @parent
    <link rel="stylesheet" type="text/css" href="{{asset('/default/css/company/intelligent.css')}}">
@endsection

@section('rightcon')
        <div class="searchcon">
            <div class="conCenter">
                <div class="insearch">
                    <div class="artificial">
                        <p>人工+智能的推荐方式，<span>不满意?</span><a href="{{url('personnel')}}">马上自已搜索></a></p>
                    </div>
                    <div class="recommend">为您推荐“<em>{{$companyJob->job_title}}</em>”的简历,共<em>{{$resumeinfo->total()}}</em>份简历</div>
                    <div class="searchinfo">
                        <ul>
                            <li class="p1">姓名</li>
                            <li class="p2">基本信息</li>
                            <li class="p2">希望岗位</li>
                            <li class="p5">意向工作地区</li>
                            <li class="p6">更新时间</li>
                        </ul>
                    </div>
                    <div class="posinfo">
                        @if($resumeinfo->count()>0)
                        <div class="posListInfo">
                            @foreach($resumeinfo as $k=>$v)
                            <div class="posCon">
                                <ul>
                                    <li class="p1"> <span><a href="{{ url("/resume_".idEncryption($v->id).".html") }}" target="_blank">{{ $v->name }}</a></span></li>
                                    <li class="p2">
                                        @if(!empty($v->sex)){{ $v->sex }}@endif
                                        @if(!empty($v->sex) and !empty($v->birthday))|@endif
                                        @if(!empty($v->birthday)){{ $v->birthday }}@endif
                                        @if(!empty($v->birthday) and !empty($v->education))|@endif
                                        @if(!empty($v->education)){{ $v->education }}@endif
                                        @if(!empty($v->education) and !empty($v->work_year))|@endif
                                        @if(!empty($v->work_year)){{ $v->work_year }}@endif
                                        @if(!empty($v->work_year) and !empty($v->homeaddress))|@endif
                                        @if(!empty($v->homeaddress)){{ $v->homeaddress }}@endif
                                    </li>
                                    <li class="p2">{{ str_limit($v->intentionjobs,30) }}</li>
                                    <li class="p5">
                                        @if(!empty($v->jobarea1)){{ $v->jobarea1 }}@endif
                                        @if(!empty($v->jobarea2))|@endif{{ $v->jobarea2 }}
                                        @if(!empty($v->jobarea3))|@endif{{ $v->jobarea3 }}
                                        @if(!empty($v->jobarea4))|@endif{{ $v->jobarea4 }}
                                        @if(!empty($v->jobarea5))|@endif{{ $v->jobarea5 }}
                                    </li>
                                    <li class="p6">{{$v->updatetime}}</li>
                                </ul>
                            </div>
                            @endforeach
                        </div>
                        @else
                            <div class="posListInfo" style="border-bottom:1px solid #EBEBEB">
                                <div class="noResult">
                                    <div class="imgLeft"><img src="{{asset('/default/images/icon/noResult.gif')}}"  /></div>
                                    <div class="soRight">
                                        <ul>
                                            <li>很抱歉，没有找到与 "<b>{{$companyJob->job_title}}</b>"相关的信息,您可以使用搜索工具来查找您想要的人才</li>
                                            <li ><b>建议您使用以下搜索工具：</b></li>
                                            <li><a href="{{url('personnel')}}">关键字搜索</a></li>
                                        </ul>
                                    </div>
                                </div>
                                <div class="stopper" style="margin-top:80px;"></div>
                            </div>
                        @endif
                    </div>

                    <!--分页-->
                    <div class="page_list">
                        {!! $resumeinfo->appends($pageInput)->links() !!}
                    </div>
                </div>
            </div>
        </div>

@endsection
@section('footerjs')
    @parent
    <script type="text/javascript" src="{{asset('/vendor/webuploader/dist/webuploader.min.js')}}"></script>
    <script type="text/javascript" src="{{asset('/default/js/company/job_list.js')}}"></script>
    <script type="text/javascript">
    </script>
@endsection